home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14375 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  611 b 

  1. Path: uicvm.uic.edu!u61441
  2. Organization: University of Illinois at Chicago, ADN Computer Center
  3. Date: Sat, 13 Apr 1996 23:35:54 CDT
  4. From: Sikander Waheed <U61441@uicvm.uic.edu>
  5. Message-ID: <96104.233554U61441@uicvm.uic.edu>
  6. Newsgroups: comp.lang.c
  7. Subject: saving system()'s output to a C variable?
  8.  
  9. Hi,
  10.   Is it possible to save the output of the system() command to
  11. a C variable? For example, when I have the line system("date")
  12. in my C program, I want the output of this command to go to a
  13. C variable (e.g. char array) instead of going on the stdout.
  14. Please send me email at swaheed@uic.edu
  15.  
  16. Thanks,
  17. Sikander
  18.